package cn.luna.datasource;
public class OperationHolder {
	private static final ThreadLocal<DataSourceType> contextHolder = new ThreadLocal<DataSourceType>();
	public static void setDataSourceType(DataSourceType dataSourceType) {
		contextHolder.set(dataSourceType);
	}
	public static DataSourceType getDataSourceType() {
		return contextHolder.get();
	}
	public static void clearDataSourceType() {
		contextHolder.remove();
	}
}
